/**
 * jims
 */
package com.jims.master.modules.emr.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.emr.dao.CourseRecordEachdisDao;
import com.jims.master.modules.emr.entity.CourseRecordEachdis;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Service
 * @author WangYongQiang
 * @version 2018-08-16
 */
@Service
@Transactional(readOnly = true)
public class CourseRecordEachdisService extends CrudService<CourseRecordEachdisDao, CourseRecordEachdis> {

	public CourseRecordEachdis get(String id) {
		return super.get(id);
	}
	
	public List<CourseRecordEachdis> findList(CourseRecordEachdis courseRecordEachdis) {
		return super.findList(courseRecordEachdis);
	}
	
	public Page<CourseRecordEachdis> findPage(Page<CourseRecordEachdis> page, CourseRecordEachdis courseRecordEachdis) {
		return super.findPage(page, courseRecordEachdis);
	}
	
	@Transactional(readOnly = false)
	public int save(CourseRecordEachdis courseRecordEachdis) {
		return super.save(courseRecordEachdis);
	}
	
	@Transactional(readOnly = false)
	public int delete(CourseRecordEachdis courseRecordEachdis) {
		return super.delete(courseRecordEachdis);
	}
	@Transactional(readOnly = false)
	public CourseRecordEachdis getBybingchengId(String bingchengId){ return dao.getBybingchengId(bingchengId);}
	
}